package com.project.poetry.common.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * @author mengxj
 */
public class ExceptionCode {

    private static final Map<Integer, String> CODE_DICT = new HashMap<>();

    static {
        CODE_DICT.put(1001, "未知异常");
        CODE_DICT.put(1002, "登录异常");
        CODE_DICT.put(1003, "用户信息异常");
        CODE_DICT.put(1004, "业务数据异常");
        CODE_DICT.put(1005, "参数异常");
        CODE_DICT.put(1006, "业务异常");
        CODE_DICT.put(2001, "恭喜通关");
    }

    public static String getValue(int code){
        return CODE_DICT.get(code);
    }
}
